import java.io.Serializable;

/**
 * 
 * 题目类
 * @author blank
 *
 */

public class Exercises implements Serializable,Comparable<Exercises>{
	private static final long serialVersionUID = -4189572862967539151L;
	//题目序号
	int number;
	//题目
	String question;
	
	
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		boolean flag=false;
		if(obj instanceof Exercises) {
			if(this.number==((Exercises)obj).number) {
				flag=true;
			}
		}
		return flag;
	}
	@Override
	public int compareTo(Exercises o) {
		// TODO Auto-generated method stub
		return this.number-o.number;
	}
	@Override
	public String toString() {
		return "Exercises [number=" + number + ", question=" + question + "]";
	}
	

}
